Skip to content

Remove gettext-base/envsubst dependency from astral.sh-uv and opencode.ai#79

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-gettext-base-installation
Draft

Remove gettext-base/envsubst dependency from astral.sh-uv and opencode.ai#79
Copilot wants to merge 2 commits intomainfrom
copilot/fix-gettext-base-installation

Conversation

Copy link

Copilot AI commented Feb 27, 2026

On some minimal base images, gettext-base is not available in the apt repositories, causing both astral.sh-uv and opencode.ai feature installs to fail when the scripts attempt to install it as a prerequisite for envsubst.

Changes

  • Both features: Drop envsubst/gettext-base entirely — replace the readonly template='...' + envsubst URL-building pattern with direct bash variable expansion
  • astral.sh-uv: Remove downloadUrlTemplate, downloadUrlLatestTemplate, binaryTargetPathTemplate declarations; build URLs inline; rename check_curl_envsubst_file_untar_installedcheck_curl_file_untar_installed
  • opencode.ai: Remove downloadUrlTemplate, binaryTargetPathTemplate declarations; build URL inline; rename check_curl_envsubst_file_unzip_installedcheck_curl_file_unzip_installed

Before:

readonly downloadUrlTemplate='https://github.com/${githubRepository}/releases/download/${version}/...'
# ...
readonly downloadUrl="$(echo -n "$downloadUrlTemplate" | envsubst)"

After:

readonly downloadUrl="https://github.com/${githubRepository}/releases/download/${version}/..."
Original prompt

This section details on the original issue you should resolve

<issue_title>opencode.ai / astral.sh-uv installs fail due to missing gettext-base</issue_title>
<issue_description>Both opencode.ai and astral.sh-uv need gettext-base.

Installation in the devcontainer fails with

 > [dev_containers_target_stage 5/9] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=astral.sh-uv_0,target=/tmp/build-features-src/astral.sh-uv_0     cp -ar /tmp/build-features-src/astral.sh-uv_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/astral.sh-uv_0  && cd /tmp/dev-container-features/astral.sh-uv_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/astral.sh-uv_0:
0.213 ===========================================================================
0.213 Feature       : astral.sh/uv
0.213 Description   : Install "uv" and "uvx" binaries
0.213 Id            : ghcr.io/devcontainer-community/devcontainer-features/astral.sh-uv
0.213 Version       : 1.0.1
0.213 Documentation : https://github.com/devcontainer-community/devcontainer-features/tree/main/src/uv
0.213 Options       :
0.213     VERSION="latest"
0.213     SHELLAUTOCOMPLETION="true"
0.213 ===========================================================================
0.216 devcontainer.community
0.216 Installing uv...
0.240 Reading package lists...
0.252 Building dependency tree...
0.253 Reading state information...
0.254 Package gettext-base is not available, but is referred to by another package.
0.254 This may mean that the package is missing, has been obsoleted, or
0.254 is only available from another source
0.254 
0.254 E: Package 'gettext-base' has no installation candidate
0.255 ERROR: Feature "astral.sh/uv" (ghcr.io/devcontainer-community/devcontainer-features/astral.sh-uv) failed to install! Look at the documentation at https://github.com/devcontainer-community/devcontainer-features/tree/main/src/uv for help troubleshooting this error.

or similar in case of opencode.ai.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…encode.ai

Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix installation failure due to missing gettext-base Remove gettext-base/envsubst dependency from astral.sh-uv and opencode.ai Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode.ai / astral.sh-uv installs fail due to missing gettext-base

2 participants